README for Harvard Dataverse repository for: Leu, Chiara, 2024, "Replication Data for: Cue-based modulation of pain stimulus expectation: do ongoing oscillations reflect changes in pain perception? A Registered Report", https://doi.org/10.7910/DVN/40ZRQR.

This repository holds the following files:

EEG data - original:	Original EEG data file for each participant, in .bdf format.

EEG data - processed:	.csv files containing the peaks at the frequency of interest (FOI) extracted from the Letswave pre-processing, which 				was then used for the statistical analysis. Each frequency band and the phase-locked response have their own file.

Letswave pre-processing:Pre-processing pipelines (.lw_script files) that were used to treat the EEG data as described in the Methods section 				of the associated publication. Letswave is a open-source Matlab plugin (www.letswave.cn). 

MATLAB:			Contains the MATLAB script (.mat) which was used to run the experiment, as well as the figures for the visual cues.

MATLAB session file:	Contains the MATLAB session file for each participant (.mat), including randomization of conditions as well as any 				ratings and other information of the testing session.

Ratings			.csv files containing ratings for expected and perceived stimulus intensity for all participants and all conditions 				(one file per condition, extraxted from the MATLAB session files). Another .csv file contains the ratings for 					painfulness of the stimuli. These files were used for the statistical analysis.

Statistical Analysis:	.rmd files (used in R Studio) to statistically analyze the data using the .csv files provided above and create the 				figures that were used in the publication. Additionally, the Letswave pipeline for the Wilcoxon signed-rank test was 				added in this folder.